package CassroomPractice.DoubleLinkedlist;

import CassroomPractice.SingiyLinkedlist.SinglyNode;

public class DoubleNode<E> {

    DoubleNode<E> last;

    E value;

    DoubleNode<E> next;

    public DoubleNode(DoubleNode<E> last, E value, DoubleNode<E> next) {
        this.last = last;
        this.value = value;
        this.next = next;
    }

    public DoubleNode(E value) {
        this(null,value,null);
    }
}

